/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.manager;

import edu.uoc.tdp.pac4.only5.domain.*;

import edu.uoc.tdp.pac4.only5.exceptions.EespaisDatabaseException;
import java.rmi.Remote;
import java.rmi.RemoteException;
 

/**
 *
 * @author Rafael Correal
 */
public interface  PaymentManager extends Remote  
{
    
    public Payment getPaymentbyId(int bookingId) throws RemoteException, EespaisDatabaseException;
    public void UpdatePaymentBooking(int bookingId, int precio) throws RemoteException;
    
    /**
     * Insercio de un nou pagament de una reserva concreta.
     * @autor Gerard
     * @param bookingId
     * @param precio
     * @throws RemoteException
     * @throws EespaisDatabaseException 
     */
    void newPayment(Integer bookingId, Double precio) throws RemoteException, EespaisDatabaseException;
}
